package cn.tedu.service;

import ch.qos.logback.core.status.InfoStatus;
import cn.tedu.pojo.Item;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

@Service
public class ItemServiceImpl implements ItemService{


    @Override
    public List<Item> findItems(String orderId) {
       
        List<Item> itemList = new ArrayList<>();
        itemList.add(new Item(1,"宝刀",5));
        itemList.add(new Item(2,"武士刀",5));
        itemList.add(new Item(3,"樱花刀",5));
        itemList.add(new Item(4,"菜刀",5));
        itemList.add(new Item(5,"西瓜刀",5));
        return itemList;
    }

    @Override
    public void updateNum(List<Item> items) {
        for (Item item:items){
            System.out.println(InfoStatus.INFO);
        }
    }
}
